<div class="content-section implementation GridDemo clearfixes">
  <form [formGroup]="borrowapprovedForm"  >
    <p-panel >
      <p-header>
        <div class="ui-helper-clearfix">
          <span class="ui-panel-title" style="font-size:16px;display:inline-block;margin-top:2px"></span>
          <button class="save"  pButton type="button"  label="返回" (click)="goBack()"  > </button>
          <button class="save" pButton [ngStyle]="{'float':'right'}"  *ngFor="let optbutton of optButtons"  label="{{optbutton.label}}" [disabled]="!borrowapprovedForm.valid" (click)="approvedOption(optbutton.status)"></button>
        </div>
      </p-header>
      <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-1 text-right">
            <label >入库单号:</label>
          </div>
          <div class="ui-grid-col-5">
            <input formControlName="sid"  name="sid"  type="text" pInputText   placeholder="入库单号" value="{{currentMaterial?.sid}}" readonly>
          </div>

          <div class="ui-grid-col-1 text-right">
            <label >入库经手人:</label>
          </div>
          <div class="ui-grid-col-5">
            <input formControlName="creater" name="creater"  type="text" pInputText   placeholder="入库经手人" value="{{currentMaterial?.creator}}"readonly >
          </div>
        </div>
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-1 text-right">
            <label >库存位置:</label>
          </div>
          <div class="ui-grid-col-5">
            <input  name="location" formControlName="location"  type="text" pInputText   placeholder="库存位置" value="{{currentMaterial?.location}}" readonly >

          </div>
          <div class="ui-grid-col-1 text-right">
            <label >仓库管理员:</label>
          </div>
          <div class="ui-grid-col-5 text-right">
            <input formControlName="keeper" type="text" pInputText  name="keeper" placeholder="仓库管理员"
                   readonly class="cursor_not_allowed"  value="{{currentMaterial?.keeper}}" readonly />

          </div>
        </div>
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-1 text-right">
            <label >简述:</label>
          </div>
          <div class="ui-grid-col-11">
            <textarea formControlName="remarks" pInputTextarea name="remarks" type="text" value="{{currentMaterial?.remarks}}"readonly></textarea>
          </div>
        </div>
        <div class="ui-grid-row margin-bottom-1vw">
          <div class="ui-grid-col-1 text-right">
            <label ><span>*</span>审批意见</label>
          </div>
          <div class="ui-grid-col-11">
            <textarea formControlName="approve_remarks" pInputTextarea type="text" name="approve_remarks"  [(ngModel)]="approvedModel['approve_remarks']" ></textarea>
            <div class="ui-message ui-messages-error ui-corner-all"  *ngIf="!borrowapprovedForm.controls['approve_remarks'].valid&&(!borrowapprovedForm.controls['approve_remarks'].untouched)" >
              <i class="fa fa-close"></i>
              审批意见必填
            </div>
          </div>
        </div>
      </div>
    </p-panel>
  </form>
 <div class="ui-g">
   <div class="mysearch">
     <label>入库列表</label>
   </div>
 </div>

  <!--<p-dataTable emptyMessage="没有数据" [value]="dataSource" [lazy]="true" [rows]="10" [paginator]="true" [rowsPerPageOptions]="[10,20,30]"-->
               <!--[totalRecords]="totalRecords" (onLazyLoad)="loadCarsLazy($event)" [stacked]="stacked" [responsive]="true" >-->
    <p-dataTable emptymessage="当前没有数据" [value]="inventories" (onLazyLoad)="loadCarsLazy($event)" [lazy]="true" [rows]="10" [paginator]="true"
                 [totalRecords]="totalRecords"  >
    <p-column  *ngFor="let col of cols" field="{{col.field}}" header="{{col.header}}"></p-column>

    </p-dataTable>
</div>
<app-add-storage
  *ngIf="showAddStorage"
  (closeAddStorage)="closeAddStorageMask($event)">
</app-add-storage>
<app-choose-warehouse-manager
  *ngIf="showWarehouseManager"
  (closeChooseWarehouse)="closeWarehouseManagerMask($event)">

</app-choose-warehouse-manager>





